<template>
	<view class="content padding-about-24">
		<uv-parse :content="info.content"></uv-parse>
		<div class="kong"></div>
	</view>
</template>

<script setup>
	import {
		ref,
		reactive
	} from 'vue';
	import {
		onLoad,
		onShow,
		onReady,
		onReachBottom
	} from '@dcloudio/uni-app';
	import {
		nativeUI,
		navigateTo,
		navigateBack
	} from '@/utils/index.js';
	import * as api from '@/request/app.js'; // 引入api 方法
	import local from '@/utils/localStorage.js'; //引入本地存储方法
	const id = ref('')
	const info = ref({})
	onLoad(function(option) {
		id.value = option.id
		getPage()
	});
	onShow(function() {});
	async function getPage(){
		let object = {
			id:id.value
		}
		const {code,data} = await api.getPage(object)
		if(code == 0){
			uni.setNavigationBarTitle({
				title:data.title
			})
			info.value = data
		}
	}
	onReady(function() {});
	onReachBottom(function() {});
</script>

<style scoped lang="scss"></style>